<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页</title>
     <link rel="stylesheet"  href="index.css">
    <script src="js/vue.global.js"></script>
</head>
<body>
    <div id="app">
        <h1>三种文本差值方式</h1>
       <div>{{title}}</div>
       <div v-text="title"></div>
       <div v-html="title"></div>
    </div>
</body>
  <script>
       const App={
        data(){
   return{
    title:"<h2>hello vue.js</h2>",
   }
        },
        methods:{

        }
       }
       Vue.createApp(App).mount("#app")
  </script>
</html>